package com.cjl.learn.configure;

import com.cjl.learn.importor.MyImportBeanDefinitionRegistrar;
import com.cjl.learn.bean.Bird;
import com.cjl.learn.bean.Dog;
import com.cjl.learn.importor.MyImportSeletor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * Created by Enzo Cotter on 2019-07-21.
 */
@Import({Dog.class, MyImportBeanDefinitionRegistrar.class, MyImportSeletor.class})
@ComponentScan("com.cjl.learn.bean")
@Configuration
public class BeanConfigure {

    @Bean
    public Bird bird() {
        return new Bird();
    }


}
